package demo.day11;

/**
 * @Auther: hjy(lc))
 * @Date: 2022/7/29-07-29-14:41
 * @Description：demo.day11     接口案例
 */
public class Student implements Action,Mark{
    @Override
    public void run() {
        System.out.print("追赶");
    }

    @Override
    public void star() {
        System.out.println("星星");
    }

    public static void main(String[] args) {
        Student student = new Student();
        student.run();
        student.star();
    }
}

//动作
interface Action{
    void run();
}

//绘画
interface Mark{
    void star();
}